﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using WMSmanagement.IBaseService.Sale.DTO;

namespace WMSmanagement.IBaseService.Sale
{
    public interface ISaleService:IApplicationService
    {
        /// <summary>
        /// 显示销售管理
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<GetSaleDTO> GetSaleAsync(RequestSaleDTO model);
        /// <summary>
        /// 添加销售管理
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<bool> AddSaleAsync(AddSaleDTO model);
        /// <summary>
        /// 查询商品表
        /// </summary>
        /// <returns></returns>
        Task<List<ProductsDTO>> GetProductsAsync();
        /// <summary>
        /// 修改销售管理
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<bool> UpdateSaleAsync(UpdateSaleDTO model);
        /// <summary>
        /// 删除销售管理
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<bool> DeleteSaleAsync(string id);
        /// <summary>
        /// 退货
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<bool> ReturnSaleAsync(int id);

    }
}
